/*
 * @(#)EndpointConfig.java
 * Date 2013-04-11
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.config;

import java.net.URL;


/**
 *
 * @author jim
 */
public class EndpointConfig {

    /** Field description */
    private int connectTimeout;

    /** Field description */
    private boolean debugMode;

    /** Field description */
    private String id;

    /** Field description */
    private String name;

    /** Field description */
    private int requestTimeout;

    /** Field description */
    private URL url;

    /**
     * Constructs ...
     *
     */
    public EndpointConfig() {
        super();
    }

    /**
     * Constructs ...
     *
     *
     * @param url
     * @param connTimeout
     * @param reqTimeout
     */
    public EndpointConfig(URL url, int connTimeout, int reqTimeout) {

        super();
        this.url = url;
        this.connectTimeout = connTimeout;
        this.requestTimeout = reqTimeout;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public int getConnectTimeout() {
        return connectTimeout;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public String getId() {
        return id;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public String getName() {
        return name;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public int getRequestTimeout() {
        return requestTimeout;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public URL getUrl() {
        return url;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public boolean isDebugMode() {
        return debugMode;
    }

    /**
     * Method description
     *
     *
     * @param connectTimeout
     */
    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    /**
     * Method description
     *
     *
     * @param debugMode
     */
    public void setDebugMode(boolean debugMode) {
        this.debugMode = debugMode;
    }

    /**
     * Method description
     *
     *
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Method description
     *
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Method description
     *
     *
     * @param requestTimeout
     */
    public void setRequestTimeout(int requestTimeout) {
        this.requestTimeout = requestTimeout;
    }

    /**
     * Method description
     *
     *
     * @param url
     */
    public void setUrl(URL url) {
        this.url = url;
    }
}
